<template>
    <div id="nav-app" >
        <div class="nav2" @mouseover="changeBack" @mouseout="returnBack">
            <router-link :to="toPath">
                <img :src="imgSrc" alt="" />
            </router-link>
        </div>
        
    </div>
</template>

<script>
export default {
    name: 'vcu-nav',
    props: ['toPath', 'name', 'imgSrc'],
    methods: {
        changeBack() {
            
            
        },
        returnBack() {
            
        }
    }
    
}
</script>

<style scoped>
#nav-app{
    width: 80px;
    height: 80px;
    padding: 10px;
    
}
.nav2{
    width: 60px;
    height: 60px;
    border-radius: 10px;
}
.nav2:hover {
    background-color: #f7f7f7;
}
</style>